//
//  HQLocationManager.h
//  o_amap
//
//  Created by Q神 on 2021/4/6.
//

#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
#import "GdMapFlutterStreamManager.h"

@class OAmapPlugin;

NS_ASSUME_NONNULL_BEGIN

@interface HQLocationManager : NSObject

@property (nonatomic, strong) FlutterResult flutterResult;

+ (instancetype)shareInstance;

/**
    plugin 相关
 */
- (void)locationWithRegistrar:(NSObject<FlutterPluginRegistrar>*)registrar withMapPlugin:(NSObject<FlutterPlugin> * _Nonnull)mapPlugin streamHandler:(GdMapFlutterStreamHandler * _Nullable)handler;
- (void)locationMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result;

/**
 启动定位
 */
- (void)startLocation:(FlutterResult)result;

/**
 停止定位
 */
- (void)stopLocation;

@end

NS_ASSUME_NONNULL_END
